<extend name="template/base_index" />

<block name="area_header">
<style type="text/css">
	textarea{resize: none;}
</style>
</block>

<block name="area_body">
	{:W('Menus/topbar')}
	<div class="admin-main container-fluid">
		{:W('Menus/left')}
		<div class="admin-main-content">
			{:W('Menus/breadcrumb')}
			<h3>小黑屋管理</h3>
			<div class="member_access">
				<blockquote><p class="text-primary"><eq name="allowbanuser" value="1">设置或查看禁言用户<else/>当前登陆帐号没有权限禁言用户</eq></p></blockquote>
				<eq name="allowbanuser" value="1">
				<a href="{:U('Admin/BbsMember/ban')}" class="btn btn-sm btn-primary">添加禁言</a>
				<table class="table table-striped table table-hover  table-condensed">
					<thead>
					<tr>
						<th>
							UID
						</th>
						<th>
							昵称
						</th>
						<th>
							违规次数
						</th>
						<th>
							禁言过期时间
						</th>
						<th>
							{:L('OPERATOR')}
						</th>
					</tr>
					</thead>
					<tbody>
					<empty name="list">
						<tr>
							<td colspan="8" class="text-center">{:L('NO_DATA')}</td>
						</tr>
						<else/>
						<volist name="list" id="vo">
							<tr>
								<td>
									{$vo.uid}</td>
								<td>
									<a href="{:U('Admin/CustomerInfo/index',array('id'=>$vo['uid']))}">{$vo.nickname|default='未知昵称'}</a></td>

								<td><if condition="$vo['count'] neq 0">{$vo.count}</if></td>
								<td>{:getDateInfo($vo['end_time'])}</td>
								<td>
									<a href="{:U('Admin/BbsMember/ban',array('uid'=>$vo['uid']))}" class="btn btn-primary btn-sm" >重置</a>
								</td>
							</tr>

						</volist>
					</empty>
					</tbody>
				</table>
				<div>{$show}</div>
				</eq>
			</div>
		</div>
		<!-- END admin-main-content -->
	</div>
		<!-- END admin-main-->
</block>

<block name="area_footer">
	<script>
		$(".allowpost").click(function () {

			$("form[name='access']").submit();
		});
	</script>
</block>
